package com.pangu.domain.user;

import java.util.Date;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;

@Table("subscription")
public class Subscription {
	
	@Column
	@Id
	private long id;
	
	@Column
	private long uid;
	
	@Column
	private long oid;
	
	@Column
	private int type;
	
	@Column
	private Date subtime;
	
	@Column
	private boolean sendmsg;
	
	@Column
	private boolean sendsms;
	
	@Column
	private boolean sendemail;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getUid() {
		return uid;
	}

	public void setUid(long uid) {
		this.uid = uid;
	}

	public long getOid() {
		return oid;
	}

	public void setOid(long oid) {
		this.oid = oid;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public Date getSubtime() {
		return subtime;
	}

	public void setSubtime(Date subtime) {
		this.subtime = subtime;
	}

	public boolean isSendmsg() {
		return sendmsg;
	}

	public void setSendmsg(boolean sendmsg) {
		this.sendmsg = sendmsg;
	}

	public boolean isSendsms() {
		return sendsms;
	}

	public void setSendsms(boolean sendsms) {
		this.sendsms = sendsms;
	}

	public boolean isSendemail() {
		return sendemail;
	}

	public void setSendemail(boolean sendemail) {
		this.sendemail = sendemail;
	}
}
